#include "rec.h"

output op;  // global variable

int main( int argc, char *argv[] ){
    
    if( argc != 2 ){
        printf("usage:\n");
        printf("    %s cosmo_param.ini\n", argv[0]);
        return 0;
    }

    char inifile[1024];
    sprintf(inifile, "%s", argv[1]);
    
    cosmo_params *cp = (cosmo_params*)malloc(sizeof(cosmo_params));
    
    dictionary *dict = iniparser_load(inifile);
    
    ini_cosmo_params( cp, dict );
    
    ini_output( &op, dict );

    // print_cosmo_params( cp );
    

    // ODE_rec_test( cp );

    do_rec_calculation( cp );
    
    free(cp);

    iniparser_freedict(dict);

    free_output( &op );
}
